Skip to content

Added CDD diagram#6

Merged
Thematiq merged 2 commits intomasterfrom
feat/cdd_plot
Mar 11, 2026
Merged

Added CDD diagram#6
Thematiq merged 2 commits intomasterfrom
feat/cdd_plot

Conversation

@Thematiq
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Critical Difference Diagram (CDD) visualization functionality to the BBT model, allowing users to visualize global model rankings with equivalence bars based on Bayesian Bradley-Terry comparisons.

Changes:

  • Added matplotlib and networkx as dependencies for plotting functionality
  • Introduced new beta_ranking property to PyBBT for accessing posterior mean beta values
  • Added plot_cdd_diagram method to PyBBT for creating CDD visualizations
  • Refactored interpretation column selection logic into a helper method

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
pyproject.toml Added matplotlib and networkx dependencies
uv.lock Updated lock file with new dependencies (networkx 3.6.1, matplotlib 3.10.7)
bbttest/bbt/_types.py Added InterpretationTypes type alias for "weak"/"strong" interpretations
bbttest/bbt/const.py Removed file - constant moved to alg.py
bbttest/bbt/alg.py Moved UNNAMED_COLUMNS_WARNING_TEMPLATE from const.py
bbttest/bbt/py_bbt.py Added beta_ranking property, plot_cdd_diagram method, and _get_interpretation_columns helper; refactored rope_comparison_control_table
bbttest/bbt/plots/init.py New plots module initialization
bbttest/bbt/plots/_critical_difference.py New plotting implementation with graph-based clique detection and CDD rendering

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Thematiq Thematiq marked this pull request as ready for review March 11, 2026 16:31
@Thematiq Thematiq merged commit 33286ae into master Mar 11, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants